<%--
  Created by IntelliJ IDEA.
  User: xianfei
  Date: 15-6-12
  Time: 上午9:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:choose>
<c:when test="${houseBaseListSize>0}">
<c:forEach items="${houseBaseList}" var="list" varStatus="status">
    <div class="holeContent clearfix">
        <div class="holeContentTop">
            <h3>${list.title}<i class="littleBiaoqian"></i></h3>
        </div>

        <div class="pictuerLeftTextRight clearfix">
            <div class="pictuerLeft" id="img_${status.index}">
                <c:forEach items="${list.imageGuids}" var="images" varStatus="s">
                    <c:choose>
                        <c:when test="${s.index==0}">
                            <img class="Current" src="/public/src_img/${images}">
                        </c:when>
                        <c:otherwise>
                            <img class="lazy" data-original="/public/src_img/${images}">
                        </c:otherwise>
                    </c:choose>
                </c:forEach>
            </div>
            <ol class="clearfix" id="ol_${status.index}">
                <c:forEach items="${list.imageGuids}" var="images" varStatus="s">
                    <c:choose>
                        <c:when test="${s.index==0}">
                            <li class="current"></li>
                        </c:when>
                        <c:otherwise>
                            <li></li>
                        </c:otherwise>
                    </c:choose>
                </c:forEach>
            </ol>

            <div class="RightAll">
                <div class="TextRight">
                    <p class="littleTittle">${list.introduction}</p>
                    <span>${list.information}</span>

                </div>
                <div class="unitMap">
                    <p>户型图</p>
                    <i class="fa fa-angle-left" ></i>
                    <i class="fa fa-angle-right"></i>
                    <div class="unitMapImg">
                        <c:forEach items="${list.buildingTypeDTOs}" var="buildingTypeDTO" varStatus="index">
                            <a href="/front/houseBase/showHouseInfo/${buildingTypeDTO.guid}">
                                <c:choose>
                                    <c:when test="${empty buildingTypeDTO.imageGuids[0]}">
                                        <img src="/public/img/huxing.png" width="137px" height="68px" alt=""/>
                                    </c:when>
                                    <c:otherwise>
                                        <img src="/public/src_img/${buildingTypeDTO.imageGuids[0]}" width="137px" height="68px" alt=""/>
                                    </c:otherwise>
                                </c:choose>
                            </a>
                        </c:forEach>
                    </div>
                </div>
                <p class="PriceAll">${list.price}<span>起</span></p>
            </div>
        </div>
        <!--threePictureShow结束-->
    </div>
</c:forEach>
</c:when>
    <c:otherwise>
        <div style="text-align: center">
            <p><h1>您所搜索的东西没用找到</h1></p>
        </div>
    </c:otherwise>
</c:choose>